package io.inputstream;

import java.io.File;
import java.io.FileInputStream;

public class Demo01 {
    public static void main(String[] args) throws Exception {
        File file = new File("F://Test//T1//a.txt");
        FileInputStream fileInputStream = new FileInputStream(file);
        byte[] bytes = new byte[1024];
        int length = 0;
        byte b;
        while ((length = fileInputStream.read(bytes)) != -1) {
            System.out.println(new String(bytes, 0, length));
        }
    }
}
